/**
 * Project pro_con
 * @author lwj
 */


#include "Consumer.h"
#include <thread>
#include <iostream>
using std::cout;
using std::endl;

/**
 * Consumer implementation
 */


Consumer::Consumer() {

}

Consumer::~Consumer() {

}

/**
 * @param que
 */
void Consumer::consume(ProductQueue & que) {
    for(int i = 0; i < 20; ++i)
    {
        int pro = que.pop();
        cout << "size = " << que.getSize() << "  consume: " << pro << endl;
    }
}
